package com.itheima.mapper;

import com.itheima.pojo.OrderSetting;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface OrderSettingMapper {
    void addOrderSetting(OrderSetting orderSetting);

    OrderSetting findByData(Date orderDate);

    void updateNumber(OrderSetting orderSetting);

    List<OrderSetting> findOrderSetting(Map<String, String> map);

    //预约时进行查询当前日期是否能够进行预约,并返回其中的可预约人数
    OrderSetting findByOrderDate(Date parseString2Date);

    //预约时,进行预约的Reservation+1
    void editReservationsByOrderDate(OrderSetting orderSetting);
}
